package org.example.shoppingmall.entity;

public class Cart {
    /**
     * 购物车id
     */
    private Integer id;
    /**
     * 商品id
     */
    private Integer goods_id;
    /**
     * 用户id
     */
    private Integer user_id;
    /**
     * 添加数量
     */
    private Integer quantity;

    public Cart(Integer id, Integer goods_id, Integer user_id, Integer quantity) {
        this.id = id;
        this.goods_id = goods_id;
        this.user_id = user_id;
        this.quantity = quantity;
    }

    public Cart() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(Integer goods_id) {
        this.goods_id = goods_id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }
}
